const { defineConfig } = require('@vue/cli-service');
const defaultSettings = require('./settings.js');
const path = require("path");

function resolve(dir) {
  return path.join(__dirname, dir)
}
module.exports = defineConfig({
  transpileDependencies: true,

  // webpack-dev-server 相关配置
  devServer: {
    host: '0.0.0.0',
    port: process.env.VUE_APP_PORT || 8080,
    open: true
  },
  configureWebpack: {
    name: defaultSettings.title,
    resolve: {
      alias: {
        '@': resolve('src')
      }
    }
  },
})
